<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	  xmlns:p="http://primefaces.org/ui">
	  
<f:view locale="#{switcher.currentLocale}">	  
<h:head>

<style type="text/css">  
           .ui-widget {  
               font-size: 13px !important;  
           }  
</style>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<title>#{msg.comprovante}</title>
	<ui:include src="/layout/Header.xhtml" />
</h:head>

<h:body><br/>
	<center>
	<h3>#{msg.comprovanteTransacao}</h3>
	<hr width="65%" />
	<table width="65%">		
	<tr>
		<th align="center" width="25%">
			#{cliente.nome}
		</th>
		
		 <th align="center" width="25%">
			#{msg.ag}: #{cliente.agencia}
		</th>
		
		<th align="center" width="25%">
			#{msg.conta}: #{cliente.contaCorrente.conta}
		</th>	
	</tr>
	</table>
	
	<hr width="65%" />
	
	<table width="65%">	
	<tr>					
			<td align="center" width="65%" >
				<h:outputText value="#{msg.barcode}: " 
							  rendered="#{transacaoManagedBean.comprovante.tipoTransacao eq 'Pagamento' or transacaoManagedBean.comprovante.tipoTransacao eq 'Payment'}" />
			
				<h:outputText value="#{transacaoManagedBean.comprovante.codBarras}" />
			</td>
			<td align="center" width="37%">
				#{transacaoManagedBean.comprovante.tipoTransacao}
			</td>
	</tr>
	</table>
	
	<hr width="65%" />
	
	<table width="65%">	
	<tr>		
		<td align="center"  width="25%">
			#{msg.remetente}: #{transacaoManagedBean.comprovante.nomeR}
		</td>
		<td align="center" width="25%">
			#{msg.ag}: #{transacaoManagedBean.comprovante.agenciaR}
		</td>		
		<td align="center" width="25%">
			#{msg.conta}: #{transacaoManagedBean.comprovante.contaR}
		</td>		
	</tr>
	<tr>		
		<td align="center"  >
			<h:outputText value="#{msg.favorecido}: #{transacaoManagedBean.comprovante.nomeD}" 
							  rendered="#{transacaoManagedBean.comprovante.tipoTransacao eq 'Pagamento' ne transacaoManagedBean.comprovante.tipoTransacao eq 'Payment'}" />
		</td>
		<td align="center" >
			<h:outputText value="#{msg.ag}: #{transacaoManagedBean.comprovante.agenciaD} " 
							  rendered="#{transacaoManagedBean.comprovante.tipoTransacao eq 'Pagamento' ne transacaoManagedBean.comprovante.tipoTransacao eq 'Payment'}" />
		</td>		
		<td align="center" >
			<h:outputText value="#{msg.conta}: #{transacaoManagedBean.comprovante.contaD}" 
							  rendered="#{transacaoManagedBean.comprovante.tipoTransacao eq 'Pagamento' ne transacaoManagedBean.comprovante.tipoTransacao eq 'Payment'}" />
		</td>		
	</tr>
	</table>
	
		<hr width="65%" />
	
	<table width="65%">	
	<tr>		
		<td align="center"  width="25%">
			
		</td>
		<td align="center" width="25%">
			#{msg.data}: #{transacaoManagedBean.comprovante.data}
		</td>		
		<td align="center" width="25%">
			#{msg.valorTransacao}: R$ 
			<h:outputText value="#{transacaoManagedBean.comprovante.valor}" >
				<f:convertNumber minFractionDigits="2" />
			</h:outputText>
		</td>		
	</tr>
	</table>
	
		<hr width="65%" />
		#{msg.autenticacao}: A2C6678B628CA9555365D19
	</center>
</h:body>
</f:view>
</html>